Package com.cisco.pt.ipc.sim.pdu.impl
Class BgpAttribLocalPrefImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
com.cisco.pt.ipc.sim.pdu.impl.PduImpl
com.cisco.pt.ipc.sim.pdu.impl.BgpAttributeImpl
com.cisco.pt.ipc.sim.pdu.impl.BgpAttribLocalPrefImpl
- All Implemented Interfaces:
IPCData,BgpAttribLocalPref,BgpAttribute,Pdu,Signal
-
Field Summary
FieldsFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.BgpAttributeImpl
flags, length, typeFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
fieldNames, fieldTable, signalType, typeTable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTypeAndPayload(EncodedBuffer buffer) getFieldType(String fieldName) intvoidpduRead(EncodedBuffer buffer) voidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidsetPreferences(int preferences) Methods inherited from class com.cisco.pt.ipc.sim.pdu.impl.BgpAttributeImpl
getFlags, getLength, getType, setFlags, setLength, setTypeMethods inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
getFieldValueMethods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.pdu.BgpAttribute
getFlags, getLength, getType, setFlags, setLength, setTypeMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Signal
getFieldValue
-
Field Details
-
preferences
protected int preferences
-
-
Constructor Details
-
BgpAttribLocalPrefImpl
public BgpAttribLocalPrefImpl()
-
-
Method Details
-
getPreferences
public int getPreferences()- Specified by:
getPreferencesin interfaceBgpAttribLocalPref- Returns:
- int Returns a int
-
setPreferences
public void setPreferences(int preferences) - Specified by:
setPreferencesin interfaceBgpAttribLocalPref- Parameters:
preferences- Takes in a parameter of preferences
-
getFieldType
- Overrides:
getFieldTypein classBgpAttributeImpl
-
read
Reads this object from an EncodedBuffer of raw data- Specified by:
readin interfaceIPCData- Overrides:
readin classBgpAttributeImpl- Parameters:
buffer- The EncodedBuffer that contains the raw data from which to construct this object
-
pduRead
- Specified by:
pduReadin interfaceSignal- Overrides:
pduReadin classBgpAttributeImpl
-
getOrderedFieldNames
- Specified by:
getOrderedFieldNamesin interfaceSignal- Overrides:
getOrderedFieldNamesin classBgpAttributeImpl
-
encodeTypeAndPayload
- Specified by:
encodeTypeAndPayloadin interfaceSignal- Overrides:
encodeTypeAndPayloadin classBgpAttributeImpl
-